//
//  ViewController.swift
//  AutoRotation
//
//  Created by Wei Zhou on 2017/5/31.
//  Copyright © 2017年 Wulian. All rights reserved.
//

import UIKit
import os.log

class ViewAController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        print("Token: aaaaaaa")
        os_log("testToken: bbbbbbb   error",  type:.error)
        os_log("testToken: bbbbbbb1  debug",  type:.debug)
        os_log("testToken: bbbbbbb2  info",  type:.info)
        print("testToken: print")
        os_log("testToken: bbbbbbb3  fault",  type:.fault)
        os_log("testToken: bbbbbbb4  default",  type:.default)
        os_log("testToken: bbbbbbb5  !!!!!")
        //test  error  fault  default  can logs in device
    }
    
    override var shouldAutorotate: Bool {
        return false
    }
    
    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        return .portrait
    }
    
    //针对Present出来的vc,push的无效
//    override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
//        return .portrait
//    }
    
    @IBAction func unwindback(unwindSegue: UIStoryboardSegue) {
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

